package com.elvt.server.controller;

import com.elvt.server.pojo.Admin;
import com.elvt.server.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author 作者： elvt
 * @Data 时间：2022/6/1
 * @packageName 包路径： ybg_back_end
 * @Desciption 说明： 聊天
 */
@RestController
@RequestMapping("/char")
public class CharController {

    @Autowired
    private IAdminService adminService;

    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/admin")
    public List<Admin>  getAllAdmins(String keywords){
        return adminService.findAllAdminByKeywords(keywords);

    }
}
